import time

"""获取当前时间"""


def getCurrentTime(format="%Y-%m-%d %H:%M:%S"):
    return time.strftime(format, time.localtime())


"""时间戳转换成格式时间"""


def getTimeStamps(timestamp, format="%Y-%m-%d %H:%M:%S"):
    return time.strftime(format, time.localtime(timestamp))
